package com.zjq.springsocial.renren.api.impl.json;

import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonDeserialize;

import com.zjq.springsocial.renren.api.User;

/**
 * 
 * <P>
 * Annotated mixin to add Jackson annotations to Renren entity
 * </P>
 * 
 * @author zhongjingquan
 * 
 * @version 0.0.1-SNAPSHOT 2013-7-18上午11:02:37
 */
@JsonIgnoreProperties(ignoreUnknown = true)
abstract class RenrenEntityMixin {
	
	@JsonCreator
	public RenrenEntityMixin() {
	}
	
	@JsonProperty("response")
	@JsonDeserialize(using = UserDeserializer.class)
	User user;
}
